<?php 
	if(!empty($output['goods_list']) && is_array($output['goods_list'])){
?>
<div class="layout">
    <div class="container large-con">

        <div class="line">
            <?php foreach($output['goods_list'] as $item){?>
            <a href="index.php?act=goods&goods_id=<?php echo $item['goods_id'];?>" class="x12 radius-big bg-white margin-top radius-big text-center">
                <div class="padding"><img src="<?php echo SiteUrl.DS.ATTACH_GOODS.DS.$item['store_id'].DS.str_replace('small','mid',$item['goods_image']);?>" onerror="this.src='<?php echo TEMPLATES_PATH;?>/images/touch2013/no_300_300.jpg'" class="layout"></div>
                <ul class="list-unstyle location padding-small">
                    <li class="height-small width"><?php echo $item['goods_name']?></li>
                    <li class="height-small width"><strong class="zt-red"> <?php if($_SESSION['is_login'] != 1){?>
                                登录后显示
                            <?php }else{?>
                                &yen;
                                <?php
                                if($item['group_flag']==0 && $item['xianshi_flag']==0){
                                    echo $item['goods_store_price'];
                                }else if($item['group_flag']==1 && $item['xianshi_flag']==0){
                                    echo $item['group_price'];
                                }else if($item['group_flag']==0 && $item['xianshi_flag']==1){
                                    echo ncPriceFormat($item['goods_store_price']*($item['xianshi_discount']/10));
                                }else if($item['group_flag']==1 && $item['xianshi_flag']==1){
                                    if($item['group_price'] < ($item['goods_store_price']*($item['xianshi_discount']/10))){
                                        echo $item['group_price'];
                                    }else{
                                        echo ncPriceFormat($item['goods_store_price']*($item['xianshi_discount']/10));
                                    }
                                }
                                ?>
                            <?php }?></strong></li>
                </ul>
            </a>
            <?php }?>
        </div><!--//line-->
    </div><!--container-->
</div><!--layout-->
    <?php }else{?>
        <ul> <li class="noTxt">
                <div class="text-center text-gray padding-large">
                    <i class="icon-meh-o"></i>
                    <p>暂无相关的数据记录。</p>
                </div>
            </li></ul>
    <?php }?>
	

